package link.cocoon.common.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * @author xce
 * @date 2019/10/17 16:21
 */
@Getter
@Setter
public abstract class BaseEntity implements Serializable {

  @TableId( value = "id", type = IdType.AUTO )
  protected Long id;

  @TableField( fill = FieldFill.INSERT )
  @ApiModelProperty( value = "创建时间" )
  protected Long createTime;

  @TableField( fill = FieldFill.INSERT_UPDATE )
  @ApiModelProperty( value = "更新时间" )
  protected Long updateTime;




}
